package com.neuedu.his.controller;

import com.neuedu.his.po.Medicalrecord;
import com.neuedu.his.service.MedicalrecordService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestBody;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

@RestController
@RequestMapping("/medicalrecord")
public class MedicalrecordController {

    @Autowired
    private MedicalrecordService medicalrecordService;

    @PostMapping("/add")
    public boolean add(@RequestBody Medicalrecord medicalrecord) {
        return medicalrecordService.saveMedicalRecord(medicalrecord);
    }
}